-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathsetup.py
45 lines (39 loc) · 1.61 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import os
import uuid
from setuptools import setup, find_packages
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
def get_requirements():
with open('requirements.txt') as f:
return [line.strip() for line in f if line.strip() and not line.startswith('#')]
setup(
name='django-autotranslate',
version='1.3.0',
packages=find_packages(),
install_requires=get_requirements(),
include_package_data=True,
license='MIT License',
description='A simple Django app to automatically translate the pot (`.po`) files generated by django\'s '
'makemessages command using google translate.',
long_description=README,
long_description_content_type='text/markdown',
url='https://github.com/ankitpopli1891/django-autotranslate/',
author='Ankit Popli',
author_email='[email protected]',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
)