Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
moving library sources to an src subdir and excluding the tests packa…
Browse files Browse the repository at this point in the history
…ge from the installation.
  • Loading branch information
pasztorpisti committed Apr 12, 2016
1 parent 9d4c8bb commit c9030b6
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 30 deletions.
31 changes: 4 additions & 27 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,33 +1,10 @@
# Byte-compiled / optimized / DLL files
/__pycache__/
*.py[cod]

# PyCharm
/.eggs/
/.idea/

# C extensions
*.so

# Distribution / packaging
.Python
/env/
/build/
/develop-eggs/
/dist/
/downloads/
/eggs/
/.eggs/
/lib/
/lib64/
/parts/
/sdist/
/var/
/*.egg-info/
/.installed.cfg
*.egg
/src/json_cfg.egg-info/

/README.html
/CHANGES.html

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.py[cod]
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Recent changes
*Release date: future*

- Adding this CHANGES.rst file.
- Moving library sources to an ``src`` subdir and excluding the ``tests`` package from the installation.


v0.4.0-beta
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include README.rst
include CHANGES.rst
include LICENSE.txt
recursive-include tests *.py
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import re
import codecs
from setuptools import setup
from setuptools import setup, find_packages


script_dir = os.path.dirname(os.path.abspath(__file__))
Expand Down Expand Up @@ -31,7 +31,7 @@ def find_version(*path):

setup(
name='json-cfg',
version=find_version('jsoncfg', '__init__.py'),
version=find_version('src', 'jsoncfg', '__init__.py'),
description='JSON config file parser with extended syntax (e.g.: comments), '
'line/column numbers in error messages, etc...',
keywords='json config file parser configuration comment',
Expand Down Expand Up @@ -62,7 +62,8 @@ def find_version(*path):
],

install_requires=['kwonly-args>=1.0.7'],
packages=['jsoncfg', 'tests'],
packages=find_packages('src'),
package_dir={'': 'src'},

test_suite= 'tests',
tests_require=['mock'],
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c9030b6

Please sign in to comment.