From 3d39a9be27a579e653f7e7d8a1bdf62ff70e2718 Mon Sep 17 00:00:00 2001 From: Florian Scherf Date: Sat, 20 Jul 2024 21:30:07 +0200 Subject: [PATCH] Revert "pip: use setuptools scm instead of hand crafted version numbers" Unfortunately, setuptools_scm is not practical when building the Docker container because then the whole project has to be present in the container. This reverts commit 8ea280790a54498f9ce6ded59da03bc50087db12. --- .gitignore | 1 - milan/__init__.py | 5 ++--- pyproject.toml | 10 +++------- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index cc2be84..6d8abd5 100644 --- a/.gitignore +++ b/.gitignore @@ -310,7 +310,6 @@ tags [._]*.un~ # End of https://www.toptal.com/developers/gitignore/api/python,vim,emacs,eclipse -/milan/_version.py /envs/ /artifacts/ /playwright-video/* diff --git a/milan/__init__.py b/milan/__init__.py index 850cc86..130c920 100644 --- a/milan/__init__.py +++ b/milan/__init__.py @@ -1,14 +1,13 @@ import logging from milan.frontend.commands import FrontendError # NOQA -from milan._version import version_tuple, version from milan.chromium import Chromium # NOQA from milan.firefox import Firefox # NOQA from milan.webkit import Webkit # NOQA from milan.errors import * # NOQA -VERSION = version_tuple -VERSION_STRING = version +VERSION = (0, 0, 0) +VERSION_STRING = '.'.join(str(i) for i in VERSION) BROWSER = { 'chromium': Chromium, diff --git a/pyproject.toml b/pyproject.toml index 5f7a024..c74213d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,12 @@ [build-system] -requires = ["setuptools>=64", "setuptools_scm>=8"] +requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" [project] +version = "0.0.0" name = "milan" -description = "Browser testing and capturing tool" -readme = "README.md" -dynamic = ["version"] + requires-python = ">=3.8" dependencies = [ @@ -68,6 +67,3 @@ include = ["milan*"] "*.swp", "*.pyc", ] - -[tool.setuptools_scm] -version_file = "milan/_version.py"