chore: make setup.py file chdir consistent

This commit is contained in:
jo 2022-01-22 18:09:40 +01:00 committed by Kyle Robbertze
parent 1924919e18
commit 441028a1d2
6 changed files with 17 additions and 9 deletions

View File

@ -4,7 +4,7 @@ from pathlib import Path
from setuptools import setup
# Change directory since setuptools uses relative paths
here = Path(__file__).parent
here = Path(__file__).parent.resolve()
chdir(here)
setup(

View File

@ -1,9 +1,12 @@
import os
from os import chdir
from pathlib import Path
from setuptools import find_packages, setup
# Change directory since setuptools uses relative paths
os.chdir(os.path.dirname(os.path.realpath(__file__)))
here = Path(__file__).parent.resolve()
chdir(here)
setup(
name="libretime-api",

View File

@ -1,9 +1,11 @@
import os
from os import chdir
from pathlib import Path
from setuptools import setup
# Change directory since setuptools uses relative paths
os.chdir(os.path.dirname(os.path.realpath(__file__)))
here = Path(__file__).parent.resolve()
chdir(here)
setup(
name="libretime-api-client",

View File

@ -4,7 +4,7 @@ from pathlib import Path
from setuptools import setup
# Change directory since setuptools uses relative paths
here = Path(__file__).parent
here = Path(__file__).parent.resolve()
chdir(here)
setup(

View File

@ -3,7 +3,8 @@ from pathlib import Path
from setuptools import setup
here = Path(__file__).parent
# Change directory since setuptools uses relative paths
here = Path(__file__).parent.resolve()
chdir(here)
setup(

View File

@ -1,9 +1,11 @@
import os
from os import chdir
from pathlib import Path
from setuptools import setup
# Change directory since setuptools uses relative paths
os.chdir(os.path.dirname(os.path.realpath(__file__)))
here = Path(__file__).parent.resolve()
chdir(here)
setup(
name="libretime-celery",