Commit abd5bba9 authored by Louis's avatar Louis
Browse files

[setup] `make wheel` et `make rmp` fonctionnent

parent d00cc3c3
Pipeline #61138 failed with stage
in 16 seconds
......@@ -54,7 +54,7 @@ clean = rm -rf *.egg-info && rm -rf $(BUILDIR) &&\
# src must be after rpm, otherwise rpm produces a .tar.gz file that replaces the
# .tar.gz source file (should $$FORMATS include gztar).
all: egg rpm deb src
all: wheel rpm deb src
help:
#
......@@ -92,17 +92,17 @@ clean:
version:
# Apply target version ($(VERSION)) to sources
$(sed-i) "s/VERSION\s*=\s*'.*'/VERSION = '$(VERSION)'/" pyromaths/Values.py
$(sed-i) "s/VERSION\s*=\s*'.*'/VERSION = '$(VERSION)'/" pyromaths/version.py
src: version
# Make full-source archive(s) (formats=$(FORMATS))
$(clean)
$(setup) sdist --formats=$(FORMATS) -d $(DIST) $(OUT)
egg: version
# Make python egg
wheel: version
# Make python wheel
$(clean)
$(setup) bdist_egg -d $(DIST) $(OUT)
$(setup) bdist_wheel -d $(DIST) $(OUT)
rpm: version
# Make RPM package
......
[egg_info]
tag_build =
tag_date = 0
tag_svn_revision = 0
[wheel]
python-tag = py3
......@@ -9,14 +9,14 @@ import os
def readme():
"""Lecture du README"""
with open("README.md") as file:
with codecs.open("README.md", encoding="utf8", errors="replace") as file:
return file.read()
# Chargement des variables VERSION, COPYRIGHT_YEAR
# Ceci n'est pas fait par un `import pyromaths.version` pour ne pas importer
# des dépendances qui ne sont pas encore installées.
with open("pyromaths/version.py") as file:
with codecs.open("pyromaths/version.py", encoding="utf8", errors="replace") as file:
exec(compile(file.read(), "version.py", "exec"))
setup(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment