Skip to content
Snippets Groups Projects
Commit 5ca4ce19 authored by Honza Mach's avatar Honza Mach
Browse files

Improved overall package structure

Following minor updates:
 - improved deployment makefile
 - gitignore file added for versioning
 - improved default readme and license files
 - improved Python package setup (added unit test support)
 - generated and deployed latest version to PyPI
parent 4154806d
No related branches found
No related tags found
No related merge requests found
!.gitignore
.directory
*~
*.log
# Compiled python modules.
*.pyc
# Setuptools distribution folder.
/dist/
/build/
# Python egg metadata, regenerated from source files by setuptools.
/*.egg-info
# Package building related folders.
/archive/pydgets*
/build/
/dist/pydgets*
The MIT License (MIT)
Copyright (c) 2016 Honza Mach
Copyright (C) since 2016 Jan Mach <honza.mach.ml@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......
#-------------------------------------------------------------------------------
# Copyright (C) since 2016 Jan Mach <honza.mach.ml@gmail.com>
# Use of this source is governed by the MIT license, see LICENSE file.
#-------------------------------------------------------------------------------
DOCDIR = doc
DIST_SIZE:=$(shell ls dist | wc -l)
all: archive bdist deploy
# Perform unit tests
test:
$(info Testing source code)
nosetests
# Move old distribution files to archive directory
archive:
$(info Checking if dist archivation is needed)
@if ! [ `ls dist | wc -l` = "0" ]; then\
echo "Moving old distribution files to archive";\
mv -f dist/* archive;\
fi
# Build various Python package distributions
bdist:
$(info Building distributions)
# Build and upload (insecure)
#python3 setup.py sdist bdist_wheel upload
# Build only
python3 setup.py sdist bdist_wheel
# Perform installation from local files for both Python v2 and v3
install:
$(info Local installation)
sudo pip3 install dist/idea*.whl
# Deploy latest packages to PyPI
deploy:
$(info PyPI deployment)
# Secure upload with Twine
twine upload dist/*
Pydgets
=======================
================================================================================
Python3 command line widget library.
.. warning::
This library is still work in progress.
.. note::
For usage and examples please see the source code, for demonstration execute
the appropriate module with Python3 interpreter.
Copyright
--------------------------------------------------------------------------------
Copyright (C) since 2016 Jan Mach <honza.mach.ml@gmail.com>
Use of this package is governed by the MIT license, see LICENSE file.
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#-------------------------------------------------------------------------------
# Copyright (C) 2015-2016 Jan Mach <honza.mach.ml@gmail.com>
# Copyright (C) 2015-2016 Jan Mach <email@jan-mach.cz>
# Use of this source is governed by the MIT license, see LICENSE file.
#-------------------------------------------------------------------------------
# Resources:
# https://packaging.python.org/en/latest/
# https://python-packaging.readthedocs.io/en/latest/index.html
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
......@@ -19,7 +23,7 @@ with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
setup(
name = 'pydgets',
version = '0.3',
version = '0.6',
description = 'Console widget library for Python 3',
long_description = long_description,
classifiers = [
......@@ -34,6 +38,8 @@ setup(
author_email = 'email@jan-mach.cz',
license = 'MIT',
packages = ['pydgets'],
test_suite = 'nose.collector',
tests_require = ['nose'],
include_package_data = True,
zip_safe = False
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment