-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·56 lines (51 loc) · 1.8 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
#!/usr/bin/env python
from setuptools import setup, find_packages
from codecs import open
from os import path
VERSION = "v3.0.2"
here = path.abspath(path.dirname(__file__))
# Get requirements from requirements.txt file
with open(path.join(here, "requirements.txt"), encoding="utf-8") as f:
requirements = f.read().splitlines()
# Get the long description from the README file
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="pidlock",
version=VERSION,
description="Simple PID based locking for cronjobs, UNIX scripts or python programs",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/keiranmraine/pidlock",
download_url="https://github.com/keiranmraine/pidlock/archive/{}.tar.gz".format(
VERSION
),
author="Keiran Raine",
author_email="keiranmraine@gmail.com",
license="MIT",
py_modules=["pidlock"],
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Topic :: Utilities",
"Operating System :: MacOS",
"Operating System :: POSIX",
],
keywords="PID Based File Locking",
packages=find_packages(exclude=["contrib", "docs", "tests"]),
install_requires=requirements,
entry_points={
"console_scripts": [
"pidlock = pidlock:pidlock_cli",
]
},
)