forked from fedosov/updates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (46 loc) · 1.48 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
# -*- coding: utf-8 -*-
__author__ = "Mikhail Fedosov ([email protected])"
import os
import re
from setuptools import setup
here = os.path.dirname(os.path.abspath(__file__))
def get_version():
with open(os.path.join(here, "updates.py")) as upy:
version_file = upy.read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup_params = {
"entry_points": {
"console_scripts": [
"updates=updates:main",
]
}
}
## Get long_description from index.txt:
f = open(os.path.join(here, "docs", "index.rst"))
long_description = f.read().strip()
f.close()
setup(
name="updates",
version=get_version(),
description="Check for updated packages in the PyPI",
long_description=long_description,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Environment :: Console",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.7",
],
keywords="pip updates update pypi packages",
author="Mikhail Fedosov",
author_email="[email protected]",
url="https://github.com/fedosov/updates",
license="MIT",
py_modules=["appearance", "packages", "updates"],
**setup_params
)