Skip to content

Commit 8ad26fc

Browse files
Switch from setup.py to pyproject.toml
1 parent 1fb5c39 commit 8ad26fc

File tree

2 files changed

+37
-43
lines changed

2 files changed

+37
-43
lines changed

pyproject.toml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[build-system]
2+
requires = ['setuptools>=61', 'setuptools_scm>=6.2']
3+
build-backend = 'setuptools.build_meta'
4+
5+
[tool.setuptools]
6+
packages = ['snscrape', 'snscrape.modules']
7+
8+
[tool.setuptools_scm]
9+
10+
[project]
11+
name = 'snscrape'
12+
description = 'A social networking service scraper'
13+
readme = 'README.md'
14+
authors = [{name = 'JustAnotherArchivist'}]
15+
classifiers = [
16+
'Development Status :: 4 - Beta',
17+
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
18+
'Programming Language :: Python :: 3.8',
19+
'Programming Language :: Python :: 3.9',
20+
'Programming Language :: Python :: 3.10',
21+
'Programming Language :: Python :: 3.11',
22+
]
23+
dependencies = [
24+
'requests[socks]',
25+
'lxml',
26+
'beautifulsoup4',
27+
'pytz; python_version < "3.9.0"',
28+
'filelock',
29+
]
30+
requires-python = '~=3.8'
31+
dynamic = ['version']
32+
33+
[project.urls]
34+
repository = "https://github.com/JustAnotherArchivist/snscrape"
35+
36+
[project.scripts]
37+
snscrape = 'snscrape._cli:main'

setup.py

-43
This file was deleted.

0 commit comments

Comments
 (0)