Mercurial > silorider
annotate setup.py @ 27:c898b4df0f29
Use context for html stripping, with support for custom URL sizes
For instance in Twitter URLs are 23 characters long since they use their
own URL shortening service. Without taking this into account, post lengths
would not be calculated correctly.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 19 Apr 2023 12:46:58 -0700 |
parents | c8e0d4c12f92 |
children | 4be321bd5ed4 |
rev | line source |
---|---|
0 | 1 import os.path |
2 from setuptools import setup, find_packages | |
3 | |
4 | |
5 def read(fname): | |
6 with open(os.path.join(os.path.dirname(__file__), fname)) as fp: | |
7 return fp.read() | |
8 | |
9 | |
10 long_description = read('README.rst') | |
11 | |
12 install_requires = [ | |
13 'coloredlogs>=10.0', | |
14 'Mastodon.py>=1.3.0', | |
15 'mf2py>=1.1.0', | |
16 'mf2util>=0.5.0', | |
17 'python-dateutil>=2.7.0', | |
20
a45587268314
Add missing `ronkyuu` dependency.
Ludovic Chabant <ludovic@chabant.com>
parents:
14
diff
changeset
|
18 'python-twitter>=3.4.0', |
a45587268314
Add missing `ronkyuu` dependency.
Ludovic Chabant <ludovic@chabant.com>
parents:
14
diff
changeset
|
19 'ronkyuu>=0.6' |
0 | 20 ] |
21 | |
22 tests_require = [ | |
23 'pytest>=3.6.2' | |
24 ] | |
25 | |
26 setup_requires = [ | |
27 'setuptools-scm', | |
28 'pytest-runner' | |
29 ] | |
30 | |
31 | |
32 setup( | |
14
c6bae5dcd8d7
Fix casing in project name.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
33 name='SiloRider', |
0 | 34 use_scm_version={'write_to': 'silorider/version.py'}, |
35 description=("Scans a website's microformats and cross-posts content " | |
36 "to 'silo' services."), | |
37 long_description=long_description, | |
38 author='Ludovic Chabant', | |
39 author_email='ludovic@chabant.com', | |
40 license="Apache License 2.0", | |
41 url='https://bolt80.com/silorider', | |
42 packages=find_packages(), | |
26
c8e0d4c12f92
Fix missing config defaults
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
43 include_package_data=True, |
0 | 44 setup_requires=setup_requires, |
45 tests_require=tests_require, | |
46 install_requires=install_requires, | |
47 entry_points={'console_scripts': [ | |
48 'silorider = silorider.main:main' | |
49 ]} | |
50 ) |