-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (45 loc) · 1.62 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
import setuptools
import sys
import pkg_resources
from configparser import ConfigParser
NAME = "loggerpy"
config: ConfigParser = ConfigParser()
config_path = '.upload_pypi.conf'
config.read(config_path)
ap = config.getboolean('pypi', 'upload')
at = config.getboolean('testpypi', 'upload')
if ap:
VERSION = config.get('pypi', 'version')
elif at:
VERSION = config.get('testpypi', 'version')
else:
raise RuntimeError('LOSE')
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name=NAME,
version=VERSION,
author="Mattia Sanchioni",
author_email="[email protected]",
description="The simplest Python logger for everyday tasks.",
keywords="logger log logging simple pylogger py-logger loggerpy logger-py simplelogger",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/mett96/loggerpy",
packages=setuptools.find_packages(),
license="GPLv3",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
'Intended Audience :: Developers',
"Intended Audience :: Information Technology",
"Topic :: Software Development :: Bug Tracking",
'Topic :: Software Development :: Build Tools',
],
)