Edgewall Software
Modify

Opened 9 years ago

Closed 9 years ago

#12487 closed defect (fixed)

Package includes subdirectories of tests

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.0.12
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:

Exclude subdirectories of tests from setuptools package.

API Changes:
Internal Changes:

Description

Some tests directories are included in the package:

$ find trac -type d | grep tests
trac/tests
trac/tests/functional
trac/ticket/tests
trac/ticket/tests/functional

We could exclude those with the following change:

  • setup.py

    diff --git a/setup.py b/setup.py
    index 9bf75f8..e45bed9 100755
    a b facilities.  
    7979        'Topic :: Software Development :: Version Control',
    8080    ],
    8181
    82     packages = find_packages(exclude=['*.tests']),
     82    packages = find_packages(exclude=['*.tests', 'tests.*', '*.tests.*']),
    8383    package_data = {
    8484        '': ['templates/*'],
    8585        'trac': ['htdocs/*.*', 'htdocs/README', 'htdocs/js/*.*',

Attachments (0)

Change History (1)

comment:1 by Ryan J Ollos, 9 years ago

Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Committed to 1.0-stable in [14799], merged to trunk in [14800].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Ryan J Ollos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.