-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·63 lines (51 loc) · 1.97 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
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import find_packages, setup
def read_requires_file(file_name):
return [
line for line in map(lambda s: s.strip(), open(file_name, encoding='utf-8'))
if line and not line.startswith('#')
]
setup(
name='b64uuid',
license='AGPLv3+',
description='A small Python library and command-line tool to encode/decode UUID to/from a 22 characters shorter URL safe base64 string.', # noqa
url='https://github.com/tanbro/b64uuid',
project_urls={
"Documentation": "https://b64uuid.readthedocs.io/",
"Source Code": "https://github.com/tanbro/b64uuid/",
},
author='liu xue yan',
author_email='[email protected]',
long_description=('{0}---{0}'.format(os.linesep * 2)).join(
open(file, encoding='utf-8').read().strip()
for file in ('README.md', 'CONTRIBUTING.md', 'CHANGELOG.md', 'AUTHORS.md')
),
long_description_content_type='text/markdown',
keywords='uuid base64 shortid urlsafe urlsafe-base64',
packages=find_packages('src'),
package_dir={'': 'src'},
python_requires='>=3.5',
install_requires=read_requires_file('requirements.txt'),
extras_require={},
setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
use_scm_version={
# guess-next-dev: automatically guesses the next development version (default)
# post-release: generates post release versions (adds postN)
'version_scheme': 'guess-next-dev',
'write_to': 'src/b64uuid/version.py',
},
entry_points={
'console_scripts': [
'b64uuid = b64uuid.__main__:main',
],
},
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Programming Language :: Python :: 3',
'Topic :: Utilities',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)