8000 Either os.path or path - not both by DimitriPapadopoulos · Pull Request #267 · python-versioneer/python-versioneer · GitHub
[go: up one dir, main page]

Skip to content

Either os.path or path - not both #267

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

Merged
merged 2 commits into from
Sep 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python

import os, base64, tempfile, io
from os import path
from pathlib import Path
from setuptools import setup, Command
from setuptools.command.build_py import build_py
Expand Down Expand Up @@ -32,11 +31,11 @@ def get(fn, add_ver=False, unquote=False, do_strip=False, do_readme=False):
return text

def get_vcs_list():
project_path = path.join(path.abspath(path.dirname(__file__)), 'src')
project_path = Path(__file__).absolute().parent / "src"
return [filename
for filename
in os.listdir(project_path)
if path.isdir(path.join(project_path, filename)) and filename != "__pycache__"]
in os.listdir(str(project_path))
if Path.is_dir(project_path / filename) and filename != "__pycache__"]

def generate_long_version_py(VCS):
s = io.StringIO()
Expand Down
0