forked from elephantech/PyGerbv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (46 loc) · 1.59 KB
/
Copy pathsetup.py
File metadata and controls
51 lines (46 loc) · 1.59 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
45
46
47
48
49
50
51
from setuptools import setup, find_packages
import os, sys
stable = os.environ.get('PYGERBV_STABLE', "YES")
branch_name = os.environ.get('PYGERBV_BRANCH', None)
if stable == "YES":
version_format = '{tag}'
classifiers = [
'Development Status :: 5 - Production/Stable',
'License :: Other/Proprietary License',
'Programming Language :: Python :: 3.6',
],
elif branch_name:
version_format = '{tag}b{commitcount}+%s' % branch_name
classifiers = [
'Development Status :: 4 - Beta',
'License :: Other/Proprietary License',
'Programming Language :: Python :: 3.6',
],
else:
version_format = '{tag}b{commitcount}+{gitsha}'
classifiers = [
'Development Status :: 4 - Beta',
'License :: Other/Proprietary License',
'Programming Language :: Python :: 3.6',
],
install_requires = []
# Add enum34 **ONLY** if necessary -- installing in 3.5+ will break things
if (sys.version_info.major < 3) or (sys.version_info.major == 3 and sys.version_info.minor < 4):
install_requires.append('enum34')
setup(
name = 'pygerbv',
version_format=version_format,
description = 'Python wrapper for libgerbv',
url = 'https://github.com/holmosapien/PyGerbv',
author = 'Elephantec',
author_email = 'development@macrofab.com',
license = 'Other/Proprietary License',
classifiers = classifiers,
packages = find_packages(),
install_requires = install_requires,
extras_require = {},
package_data = {},
data_files = [],
entry_points = {},
setup_requires=['setuptools-git-version']
)