This repository has been archived by the owner on Mar 12, 2021. It is now read-only.
forked from disqus/django-bitfield
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
53 lines (49 loc) · 1.49 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
46
47
48
49
50
51
52
53
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
version = __import__('bitfield').get_version()
if sys.argv[-1] == 'publish':
os.system('python setup.py bdist_wheel upload -r natgeo')
print("You probably want to also tag the version now:")
print(" python setup.py tag")
sys.exit()
elif sys.argv[-1] == 'tag':
cmd = "git tag -a %s -m 'version %s';git push --tags" % (version, version)
os.system(cmd)
sys.exit()
setup(
name='django-bitfield-ng',
version=version.replace(' ', '-'),
author='Disqus',
author_email='[email protected]',
url='https://github.com/disqus/django-bitfield',
description='BitField in Django',
packages=find_packages(),
zip_safe=False,
install_requires=[
'six',
],
extras_require={
'tests': [
'flake8',
'mysqlclient',
'psycopg2>=2.3',
'pytest-django',
],
},
include_package_data=True,
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: Software Development',
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
],
)