move files into src directory
This commit is contained in:
13
README.md
13
README.md
@@ -1,2 +1,11 @@
|
||||
pylib
|
||||
=====
|
||||
# Install
|
||||
|
||||
Install in "development mode" so any changes of the program is effective.
|
||||
|
||||
git clone http://weseng.de/daniel/pylib.git
|
||||
cd pylib
|
||||
pip install --user -e .
|
||||
|
||||
# Uninstall
|
||||
|
||||
pip uninstall pylib
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Add vendor directory to module search path
|
||||
project_dir = os.path.abspath(os.path.dirname(__file__))
|
||||
parent_dir = os.path.dirname(project_dir)
|
||||
vendor_dir = os.path.join(parent_dir, 'vendor')
|
||||
|
||||
if vendor_dir not in sys.path:
|
||||
sys.path.append(vendor_dir)
|
||||
|
||||
# Now you can import any library located in the "vendor" folder!
|
||||
# import drawille
|
||||
35
setup.py
Normal file
35
setup.py
Normal file
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
from os.path import join, dirname
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
# Utility function to read the README file. Used for the long_description.
|
||||
def read(fname):
|
||||
with open(join(dirname(__file__), fname)) as fh:
|
||||
return fh.read()
|
||||
|
||||
setup(
|
||||
name="pylib",
|
||||
version="2021.02.01",
|
||||
description="python library",
|
||||
long_description=read("README.md"),
|
||||
author="Daniel Weschke",
|
||||
author_email="daniel.weschke@directbox.de",
|
||||
package_dir={'': 'src'},
|
||||
packages=find_packages("src"),
|
||||
keywords = ['data', 'date', 'draw', 'geometry', 'mathematics', 'numerical', 'time'],
|
||||
license="MIT",
|
||||
classifiers=[
|
||||
'Environment :: Console',
|
||||
'Intended Audience :: Education',
|
||||
'Intended Audience :: End Users/Desktop',
|
||||
'Intended Audience :: Developers',
|
||||
'Intended Audience :: Science/Research',
|
||||
'License :: OSI Approved :: MIT License',
|
||||
'Natural Language :: English',
|
||||
'Operating System :: OS Independent',
|
||||
'Programming Language :: Python',
|
||||
'Topic :: Scientific/Engineering',
|
||||
'Topic :: Scientific/Engineering :: Physics'
|
||||
]
|
||||
)
|
||||
13
src/pylib/__init__.py
Normal file
13
src/pylib/__init__.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Add vendor directory to module search path
|
||||
_project_dir = os.path.abspath(os.path.dirname(__file__))
|
||||
_parent_dir = os.path.dirname(_project_dir)
|
||||
_vendor_dir = os.path.join(_parent_dir, 'vendor')
|
||||
|
||||
if _vendor_dir not in sys.path:
|
||||
sys.path.append(_vendor_dir)
|
||||
|
||||
# Now you can import any library located in the "vendor" folder!
|
||||
# import drawille
|
||||
Reference in New Issue
Block a user