-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·41 lines (35 loc) · 1.23 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
# -*- coding: utf-8 -*-
from pathlib import Path
from setuptools import find_packages, setup
import unshurl as pkg
exclude = ['.idea*', 'build*', '{}.egg-info*'.format(pkg.__package__), 'dist*', 'venv*', 'doc*', 'lab*']
requirements = Path(__file__).resolve().with_name('requirements.txt')
readme = Path(__file__).resolve().with_name('README.md')
readme.touch(exist_ok=True)
readme.touch(exist_ok=True)
requirements = requirements.read_text()
requirements = requirements.split('\n')
classifiers = [
'Development Status :: 5 - Production',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
]
setup(
name=pkg.__package__,
version=pkg.__version__,
packages=find_packages(exclude=exclude),
url=pkg.__site__,
license=pkg.__license__,
keywords=pkg.__keywords__,
author=pkg.__author__,
author_email=pkg.__email__,
long_description=readme.read_text(encoding='UTF-8'),
description=pkg.__description__,
classifiers=classifiers,
install_requires=requirements,
scripts=['bin/unshurl']
)