Skip to content

Commit

Permalink
move files to top dir for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Sep 19, 2019
1 parent dd4b3a3 commit 8a9f48d
Show file tree
Hide file tree
Showing 19 changed files with 16 additions and 60 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ build*/
CMakeLists.txt.user
*-shm
*-wal
*.pyc
*.pyc
dist/
_skbuild/
*egg-info/
MANIFEST
5 changes: 3 additions & 2 deletions pygeodiff/MANIFEST.in → MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Things to include in the built package (besides the packages defined in setup.py)
include README
include LICENSE
include pyproject.toml
include pyproject.toml
include geodiff/CMakeLists.txt
include geodiff/src/*
2 changes: 1 addition & 1 deletion geodiff/src/geodiff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

const char *GEODIFF_version()
{
return "0.2.2";
return "0.2.3";
}

void _errorLogCallback( void *pArg, int iErrCode, const char *zMsg )
Expand Down
File renamed without changes.
21 changes: 0 additions & 21 deletions pygeodiff/.gitignore

This file was deleted.

21 changes: 0 additions & 21 deletions pygeodiff/LICENSE

This file was deleted.

2 changes: 0 additions & 2 deletions pygeodiff/README

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__title__ = 'PyGeoDiff'
__description__ = 'Diff tool for geo-spatial data'
__url__ = 'https://github.com/lutraconsulting/geodiff'
__version__ = '0.2.2'
__version__ = '0.2.3'
__author__ = 'Peter Petrik'
__author_email__ = 'zilolv@gmail.com'
__maintainer__ = 'Peter Petrik'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/publish_pypi.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ else
fi

echo -n "Publishing pygeodiff to $URL"
cd $DIR/../pygeodiff
cd $DIR/..

rm -rf pygeodiff.egg-info
rm -rf _skbuild
Expand Down
4 changes: 2 additions & 2 deletions scripts/update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ def replace_in_file(filepath, regex, sub):
print("patching " + cpp_file)
replace_in_file(cpp_file, r'(GEODIFF_version\(\)\n{\n\s+return\s)".*"(;\n})', r'\1"' + ver + r'"\2')

about_file = os.path.join(dir_path, os.pardir, "pygeodiff", "pygeodiff", "__about__.py")
about_file = os.path.join(dir_path, os.pardir, "pygeodiff", "__about__.py")
print("patching " + about_file)
replace_in_file(about_file, "__version__\s=\s'.*", "__version__ = '" + ver + "'")

setup_file = os.path.join(dir_path, os.pardir, "pygeodiff", "setup.py")
setup_file = os.path.join(dir_path, os.pardir, "setup.py")
print("patching " + setup_file)
replace_in_file(setup_file, "VERSION\s=\s'.*", "VERSION = '" + ver + "'")
11 changes: 3 additions & 8 deletions pygeodiff/setup.py → setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,15 @@
EXCLUDE_FROM_PACKAGES = ["contrib", "docs", "tests*"]
CURDIR = os.path.abspath(os.path.dirname(__file__))

with io.open(os.path.join(CURDIR, "README"), "r", encoding="utf-8") as f:
README = f.read()


VERSION = '0.2.2'
VERSION = '0.2.3'

setup(
name="pygeodiff",
version=VERSION,
author="Peter Petrik",
author_email="peter.petrik@lutraconsulting.co.uk",
description="Python wrapper around GeoDiff library",
long_description=README,
long_description_content_type="text/markdown",
long_description="Python wrapper around GeoDiff library",
url="https://github.com/lutraconsulting/geodiff",
packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES),
include_package_data=True,
Expand All @@ -40,7 +35,7 @@
entry_points={"console_scripts": ["pygeodiff=pygeodiff.main:main"]},
zip_safe=False,
cmake_args=['-DENABLE_TESTS:BOOL=OFF', '-DENABLE_COVERAGE:BOOL=OFF', '-DBUILD_TOOLS:BOOL=OFF', '-DPYGEODIFFVERSION='+str(VERSION)],
cmake_source_dir="../geodiff",
cmake_source_dir="geodiff",
cmake_with_sdist=True,
test_suite="tests.test_project",
python_requires=">=3.6",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8a9f48d

Please sign in to comment.