Skip to content

Commit

Permalink
Merge pull request #400 from Tecnativa/fix-setuptools_scm-version
Browse files Browse the repository at this point in the history
[FIX] Deprecate setup_requires for pyproject.toml
  • Loading branch information
pedrobaeza authored Feb 24, 2025
2 parents d945608 + 83a4293 commit ec6b3e6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 93 deletions.
76 changes: 0 additions & 76 deletions .travis.yml

This file was deleted.

8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[build-system]
requires = [
"setuptools",
"setuptools_scm",
]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
7 changes: 0 additions & 7 deletions requirements.txt

This file was deleted.

15 changes: 5 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

from setuptools import setup

import openupgradelib

with open("README.rst") as readme_file:
readme = readme_file.read()

Expand All @@ -24,24 +22,21 @@
setup(
name="openupgradelib",
use_scm_version=True,
description=openupgradelib.__doc__,
description="""A library with support functions to be called from Odoo \
migration scripts.""",
long_description=readme + "\n\n" + history,
author=openupgradelib.__author__,
author_email=openupgradelib.__email__,
author="Odoo Community Association (OCA)",
author_email="support@odoo-community.org",
url="https://github.com/OCA/openupgradelib",
packages=["openupgradelib"],
include_package_data=True,
setup_requires=[
"setuptools_scm<6.0.0; python_version <= '3.6'",
"setuptools_scm; python_version > '3.6'",
],
install_requires=[
"lxml",
"cssselect",
'importlib_metadata; python_version<"3.8"',
],
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
license=openupgradelib.__license__,
license="AGPL-3",
zip_safe=False,
keywords="openupgradelib",
classifiers=[
Expand Down

0 comments on commit ec6b3e6

Please sign in to comment.