-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
44 lines (40 loc) · 1.34 KB
/
Copy pathsetup.py
File metadata and controls
44 lines (40 loc) · 1.34 KB
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
from pathlib import Path
import setuptools
import sys
version = float(open('version.txt', 'r').read())
if 'increment_version' in sys.argv:
version = round(version + 0.1, 1)
print('incrementing version to', version)
open('version.txt', 'w').write(str(version))
sys.argv.remove('increment_version')
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
setuptools.setup(
name='django_reusable',
version=str(version),
author='Naved Rangwala',
author_email='naved@ecarone.com',
description='Agnostic and easy to use reusable library for django',
url='https://github.com/navedr/django-reusable',
license='BSD',
packages=setuptools.find_packages(),
include_package_data=True,
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=[
'Django>=2.0',
'django-tables2>=1.21.2',
'django-crispy-forms>=1.7.2',
'pytz',
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'
]
)