-
Notifications
You must be signed in to change notification settings - Fork 489
Move project metadata and configuration to 'pyproject.toml' #1311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,62 @@ | ||
| [build-system] | ||
| build-backend = "setuptools.build_meta" | ||
| requires = [ | ||
| "setuptools >= 77.0", | ||
| ] | ||
|
|
||
| [project] | ||
| name = "dateparser" | ||
| description = "Date parsing library designed to parse dates from HTML pages" | ||
| authors = [ | ||
| { name = "Scrapinghub", email = "opensource@zyte.com" }, | ||
| ] | ||
| license = "BSD-3-Clause" | ||
| keywords = ["dateparser"] | ||
| classifiers = [ | ||
| "Development Status :: 5 - Production/Stable", | ||
| "Intended Audience :: Developers", | ||
| "Natural Language :: English", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: 3.13", | ||
| "Programming Language :: Python :: 3.14", | ||
| "Programming Language :: Python :: Implementation :: CPython", | ||
| ] | ||
| requires-python = ">=3.10" | ||
| dynamic = ["readme", "version"] | ||
|
|
||
| dependencies = [ | ||
| "python-dateutil>=2.7.0", | ||
| "pytz>=2024.2", | ||
| "regex>=2024.9.11", | ||
| "tzlocal>=0.2", | ||
| ] | ||
|
|
||
| [project.optional-dependencies] | ||
| calendars = ["convertdate>=2.2.1", "hijridate"] | ||
| fasttext = ["fasttext>=0.9.1", "numpy>=1.22.0,<2"] | ||
| langdetect = ["langdetect>=1.0.0"] | ||
|
|
||
| [project.urls] | ||
| Source = "https://github.com/scrapinghub/dateparser" | ||
| History = "https://dateparser.readthedocs.io/en/latest/history.html" | ||
|
|
||
| [project.scripts] | ||
| dateparser-download = "dateparser_cli.cli:entrance" | ||
|
|
||
| [tool.setuptools] | ||
| include-package-data = true | ||
| zip-safe = false | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| namespaces = false | ||
| exclude = ["tests", "tests.*"] | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version = { attr = "dateparser.__version__" } | ||
|
Comment on lines
+57
to
+58
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We use
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have no familiarity with
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://callowayproject.github.io/bump-my-version/reference/configuration/global/#current_version
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, so you use Bump My Version, not bumpversion. Either way, do you want to store the current version in
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe we should do both. We keep it in But for packaging, instead of having pyproject.toml fetch that constant, we define the version in pyproject.toml itself as project.version, and not in the bumpversion/bump-my-version variable, and |
||
|
|
||
| [tool.bumpversion] | ||
| current_version = "1.3.0" | ||
| commit = true | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.