forked from scikit-build/github-release
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·66 lines (48 loc) · 1.9 KB
/
setup.py
File metadata and controls
executable file
·66 lines (48 loc) · 1.9 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env python
import sys
from setuptools import setup
with open('README.md', 'r') as fp:
readme = fp.read()
with open('requirements.txt', 'r') as fp:
requirements = list(filter(bool, (line.strip() for line in fp)))
with open('requirements-dev.txt', 'r') as fp:
dev_requirements = list(filter(bool, (line.strip() for line in fp)))
setup_requires = ['setuptools-version-command']
# Require pytest-runner only when running tests
pytest_runner = (['pytest-runner>=2.0,<3dev']
if any(arg in sys.argv for arg in ('pytest', 'test'))
else [])
setup_requires.extend(pytest_runner)
setup(
name='githubrelease',
description='githubrelease is a CLI to easily manage GitHub releases, '
'assets and references',
long_description=readme,
long_description_content_type='text/markdown; charset=UTF-8',
url='https://github.com/j0057/github-release',
author='Joost Molenaar, Jean-Christophe Fillion-Robin',
author_email='j.j.molenaar@gmail.com, jchris.fillionr@kitware.com',
version_command='git describe',
py_modules=['github_release'],
entry_points={
'console_scripts': [
'githubrelease = github_release:main',
'github-release = github_release:gh_release',
'github-asset = github_release:gh_asset'
]},
license="Apache",
classifiers=[
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Version Control',
'Topic :: System :: Software Distribution'
],
install_requires=requirements,
tests_require=dev_requirements,
setup_requires=setup_requires
)